export const fileControllerMixins = {
  data () {
    return {
      fileList: [],
      realFileUrl: [],
    };
  },
  methods: {

    handleRemove () {
      this.isShowUpload = !this.isShowUpload;
      // console.log(file, fileList)
    },
    handlePreview (file) {
      // console.log(file)
    },
    handleExceed (files, fileList) {
      this.$message.warning(`当前限制选择 4 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`);
    },
    beforeRemove (file) {
      return this.$confirm(`确定移除 ${file.name}？`);
    },
  },
};
